#!/bin/bash

echo "info: setup debian deb822 format sources"
mv /etc/apt/sources.list /etc/apt/sources.list.bak
cat <<EOFD > /etc/apt/sources.list.d/debian.sources
# Debian Trixie sources #
Types: deb
URIs: http://deb.debian.org/debian/
Suites: trixie
Components: main contrib non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Enabled: yes

Types: deb
URIs: http://security.debian.org/debian-security/
Suites: trixie-security
Components: main contrib non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Enabled: yes

Types: deb
URIs: http://deb.debian.org/debian/
Suites: trixie-updates
Components: main contrib non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Enabled: yes

Types: deb
URIs: http://deb.debian.org/debian/
Suites: trixie-proposed-updates
Components: main contrib non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Enabled: yes
EOFD

echo "info: setup nakedeb deb822 format sources"
mv /etc/apt/sources.list.d/nakedeb.list /etc/apt/sources.list.d/nakedeb.list.bak
cat <<EOFN > /etc/apt/sources.list.d/nakedeb.sources
Types: deb
URIs: http://nakedeb.arpinux.org/repo/debian
Suites: trixie
Components: main
Signed-By: /usr/share/keyrings/nakedeb-keyring.gpg
Enabled: yes
EOFN

exit 0
